import { UnconfirmedRuleEnum } from '@/constants/system';

export interface IGetFactorMatchListReq {
  category?: string; // 规则类别
  standard?: string; // 核算适用标准
  keyName?: string; // 规则KEY
  factorName?: string; // 因子名称
}

export interface IGetFactorMatchListRes {
  ruleNo: string;
  ruleName: string;
  category: string;
  priority: number;
  applicableStandard: string[];
  keyName: string;
  factorNo: string;
  factorName: string;
  factorSource: string;
  factor: number;
  factorUnit: string;
  status: string;
  creator: string;
  createTime: string;
}

export interface IGetUnconfirmedRuleListReq {
  status?: keyof typeof UnconfirmedRuleEnum;
  relationNumGreater?: string;
  flowType?: string;
  flowName?: string;
}
export interface IGetUnconfirmedRuleListRes {
  // 规则编号
  ruleNo: string;
  // 流类型
  flowType: string;
  // 流名称
  flowName: string;
  // 核算标准
  accountStandard: string;
  // 规则类型
  ruleCategory: string;
  // 因子编号
  factorNo: string;
  // 因子名称
  factorName: string;
  // 关联次数
  relationNum: string;
  // 规则处理状态
  status: string;
}
export interface IHandleBatchType {
  ruleNoList: string[];
  ruleCategory?: string;
  applicableStandard?: string[];
}
